<?php

class Core
{
    private static $dbConn             = null;

    private function __construct() {}

    /**
     * Returns DBConnection.
     *
     * @return DBConnection
     */
    public static function DBConn()
    {
        if ( is_null(self::$dbConn) )
        {
            self::$dbConn = $dbConn = new DBConnection();
            //$dbConn->Connect( 'localhost', 'root', null, null, null );
            //$dbConn->SelectDB( 'rss_grabber' );
        }
        return self::$dbConn;
    }
}